﻿using AutoMapper;
using Traceability.APP.Application.Command.Breeding;
using Traceability.APP.Application.Command.Butcher;
using Traceability.APP.Application.Command.Company;
using Traceability.APP.Application.Command.DCompany;
using Traceability.APP.Application.Command.Deep;
using Traceability.APP.Application.Command.Enterprise;
using Traceability.APP.Application.Command.Health;
using Traceability.APP.Application.Command.Photo;
using Traceability.APP.Application.Command.Traceability;
using Traceability.APP.DTOS;
using Traceability.Domain;

namespace Traceability.APP
{
    public class MyAutoMapper : Profile
    {
        public MyAutoMapper()
        {
            CreateMap<GetAddTraceabilityCommon,Traceability_Management>().ReverseMap();
            CreateMap<TraceabilityDto, Traceability_Management>().ReverseMap();
            CreateMap<UpdateTraceabilityCommand, Traceability_Management>().ReverseMap();

            CreateMap<BreedingAddCommand, Breeding_Information>().ReverseMap();
            CreateMap<UpdateBreedingCommand, Breeding_Information>().ReverseMap();

            CreateMap<AddHealthCommand, Health_Model>().ReverseMap();
            CreateMap<UpdateHealthCommand, Health_Model>().ReverseMap();

            CreateMap<AddEnterpriseCommand, Enterprise_Model>().ReverseMap();
            CreateMap<UpdateEnterpriseCommand, Enterprise_Model>().ReverseMap();

            CreateMap<AddButcherCommand, Butcher_Model>().ReverseMap();
            CreateMap<UpdateButcherCommand, Butcher_Model>().ReverseMap();

            CreateMap<AddCompanyCommand, Company_Model>().ReverseMap();
            CreateMap<UpdateCompanyCommand, Company_Model>().ReverseMap();

            CreateMap<AddDeepCommand, Deep_Model>().ReverseMap();
            CreateMap<UpdateDeepCommand, Deep_Model>().ReverseMap();

            CreateMap<AddDcompanyCommand, DeepCompany_Model>().ReverseMap();
            CreateMap<UpdateDeepcompanyCommand, DeepCompany_Model>().ReverseMap();

            CreateMap<AddPhotoCommand, Photo_Model>().ReverseMap();
            CreateMap<UpdatePhotoCommand, Photo_Model>().ReverseMap();
        }

    }
}
